import {Injectable, EventEmitter}  from '@angular/core';
/**
 * 事件通知
 */
@Injectable()
export class Notify{
	_event:any = new EventEmitter();

	emit(data){
		this._event.emit(data);
	}
	
	subscribe(callBack:()=>any){
		this._event.subscribe((data)=>{
			callBack(data);
		});
	}
}